//
//  KTableView.h
//  Peanut
//
//  Created by Jim huang on 2018/3/12.
//  Copyright © 2018年 Jim_Peanut. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol RefreshDelegate <NSObject>

@optional
-(void)refresh;
-(void)loadmore;

@end


@interface KBaseTableView : UITableView

@property(nonatomic,assign)BOOL refreshEnable;
@property(nonatomic,assign)BOOL loadmoreEnable;
@property(nonatomic,weak)id<RefreshDelegate>refreshProtocol;


//开始刷新
-(void)beginRefresh;
//结束刷新
-(void)endRefresh;
//结束刷新并显示没有更多
-(void)endRefreshingWithNoMore;

// 是否支持滚动
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style scrollEnable:(BOOL)scrollEnable;

@end



